﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="BoardPACDSWeb.Controllers" %>
<%@ Import Namespace="BoardPACDSWeb.Lang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Resources.info_heading_home %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--<p style="text-align:center;padding-top:120px">
         <asp:Image  id="Img1" runat="server" ImageUrl="~/ContentDownloadApp/images/warterMark.gif"  />
     </p>--%>
    <!-- start container  -->
    <div class="pnltablecontent" style="padding-bottom: 10px;">
        <!-- panel content header  -->
        <div class="pnlcontentheader">
        </div>
        <table class="pnlformcontent txtleft frmtable">
            <tbody>
                <!-- Start user name section -->
                <tr>
                    <td style="text-align: center;" rowspan="2">
                        <%--<img src="../../../ContentDownloadApp/Images/logo_pac.jpg" alt="BoardPAC Logo" />--%>
                        <img src="<%= Url.Content("~/ContentDownloadApp/Images/logo_pac.jpg")%>" alt="BoardPAC Logo" />
                    </td>
                    <td class="install-text" style="font-size: 18px;">
                        <%
                            ModelState err = ViewContext.ViewData.ModelState["err"];
                            GenException result = null;

                            if (err != null)
                            {
                                result = (GenException)err.Errors.ElementAt(0).Exception;
                            } %>
                        <!-- Start notification error message -->
                        <% if (result != null)
                           { %>
                        <div class="redtxt">
                            <%: result.Message %>
                        </div>
                        <% if (result.Message.Contains(Resources.Please_update_your_iPad_OS_))
                           { %>
                        <a style="font-size: 18px;" href="http://support.apple.com/kb/HT4623">More info...</a>
                        <% } %>
                        <% }
                           else
                           { %>
                        Please click the Download button to install BoardPAC v.<%:DefaultController.GetProductVersion()%>
                        to your iPad.
                        <% } %>
                        <!-- End notification error message -->
                    </td>
                </tr>
                <tr>
                    <td class="frmdatahead">
                        <% if (result == null)
                           { %>
                        <a href="<%:DefaultController.GetPListPathDeviceId()%>">
                            <input type="submit" title="Get DeviceID App" class="button" value="Get DeviceID App" style="width:160px; height:25px" />
                        </a><a href="<%:DefaultController.GetPListPathDownload()%>">
                            <input type="submit" title="Download BoardPAC" class="button" value="Download BoardPAC" style="width:160px; height:25px" />
                        </a>
                        <% } %>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
